package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.YgabcBorrow;

/**
 * ygabc_borrowMapper接口
 * 
 * @author ruoyi
 * @date 2022-06-15
 */
public interface YgabcBorrowMapper 
{
    /**
     * 查询ygabc_borrow
     * 
     * @param id ygabc_borrow主键
     * @return ygabc_borrow
     */
    public YgabcBorrow selectYgabcBorrowById(String id);
    public List<YgabcBorrow> selectYgabcBorrowByuserId(String userid);
    public YgabcBorrow selectYgabcBorrowByName(String name);
    /**
     * 查询ygabc_borrow列表
     * 
     * @param ygabcBorrow ygabc_borrow
     * @return ygabc_borrow集合
     */
    public List<YgabcBorrow> selectYgabcBorrowList(YgabcBorrow ygabcBorrow);

    /**
     * 新增ygabc_borrow
     * 
     * @param ygabcBorrow ygabc_borrow
     * @return 结果
     */
    public int insertYgabcBorrow(YgabcBorrow ygabcBorrow);

    /**
     * 修改ygabc_borrow
     * 
     * @param ygabcBorrow ygabc_borrow
     * @return 结果
     */
    public int updateYgabcBorrow(YgabcBorrow ygabcBorrow);

    /**
     * 删除ygabc_borrow
     * 
     * @param id ygabc_borrow主键
     * @return 结果
     */
    public int deleteYgabcBorrowById(String id);

    /**
     * 批量删除ygabc_borrow
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYgabcBorrowByIds(String[] ids);

    YgabcBorrow selectYgabcBorrowByuserName(String username);
}
